package com.campus.utils;

import cn.hutool.crypto.digest.MD5;

import java.nio.charset.StandardCharsets;

public class PasswordUtil {
    public static String encrypt(String password) {
        return MD5.create().digestHex(password.getBytes(StandardCharsets.UTF_8));
    }
}
